package utils

import (
	"time"
)

func GetDayMonthInFixedOffset(timestamp int64, offset int) (day, month, year int) {
	// 创建固定偏移时区
	loc := time.FixedZone("", offset*60*60)

	// 将时间戳转换为 time.Time 对象
	t := time.Unix(timestamp, 0).In(loc)

	// 获取 day 和 month
	day = t.Day()
	month = int(t.Month())
	year = t.Year()

	return day, month, year
}
